package com.rock.drawboard.ui.adapter;

import android.content.Context;
import android.provider.CalendarContract;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.rock.drawboard.R;

public class GridTextAdapter extends BaseAdapter {
		private Context myContext ;
		private TextView mView ;
		private String[] mTexts = {"8", "16", "24" , "32", "40", "48"};

		public GridTextAdapter(Context myContext) {
			this.myContext = myContext;
		}

		public int getCount() {
			return mTexts.length;
		}

		public Object getItem(int position) {
			return position;
		}

		public long getItemId(int position) {
			return position;
		}

		public View getView(int position, View convertView, ViewGroup parent) {
			mView = new TextView(myContext);
			mView.setText(mTexts[position]);
			mView.setTextSize(25);
			mView.setTextColor(R.color.black);
			mView.setGravity(Gravity.CENTER);
//			mView.setBackgroundResource(android.R.drawable.picture_frame);
			return mView ;
		}
	}
